package com.ereport.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;
@Entity
@Table(name="outstation_expenses")
public class OutStationExpenses implements Serializable{
	@Id
	@GeneratedValue(generator="increment")
	@GenericGenerator(name="increment", strategy = "increment")
	private int id;
	@ManyToOne
	@JoinColumn(name="exe_id")
	private Executives exeId;
	@Column(name="from_date")
	private Date fromDate;
	@Column(name="to_date")
	private Date toDate;
	private String particulars;
	private String entertainment;
	private String travel;
	private String hotel;
	private String others;
	@Column(name="created_date")
	private Date createdDate;
	public OutStationExpenses(){
		
	}
	public OutStationExpenses(Executives ex, Date fdate, Date tdate,
			String particulars, String entertainment, String travel,
			String hotel, String others, Date cdate) {
		this.exeId=ex;
		this.fromDate=fdate;
		this.toDate=tdate;
		this.particulars=particulars;
		this.entertainment=entertainment;
		this.travel=travel;
		this.hotel=hotel;
		this.others=others;
		this.createdDate=cdate;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public Executives getExeId() {
		return exeId;
	}
	public void setExeId(Executives exeId) {
		this.exeId = exeId;
	}
	public Date getFromDate() {
		return fromDate;
	}
	public void setFromDate(Date fromDate) {
		this.fromDate = fromDate;
	}
	public Date getToDate() {
		return toDate;
	}
	public void setToDate(Date toDate) {
		this.toDate = toDate;
	}
	public String getParticulars() {
		return particulars;
	}
	public void setParticulars(String particulars) {
		this.particulars = particulars;
	}
	public String getEntertainment() {
		return entertainment;
	}
	public void setEntertainment(String entertainment) {
		this.entertainment = entertainment;
	}
	public String getTravel() {
		return travel;
	}
	public void setTravel(String travel) {
		this.travel = travel;
	}
	public String getHotel() {
		return hotel;
	}
	public void setHotel(String hotel) {
		this.hotel = hotel;
	}
	public String getOthers() {
		return others;
	}
	public void setOthers(String others) {
		this.others = others;
	}
	public Date getCreatedDate() {
		return createdDate;
	}
	public void setCreatedDate(Date createdDate) {
		this.createdDate = createdDate;
	}
	
}
